package cn.huiyunche.base.service.enums;

/**
 * 账单业务类型
 * (10:同城配送20:城际运输30:人送代驾)
 *
 * @author lm
 */
public enum AccBillTypeEnum {

    INCITY(10, "同城配送"),//"同城"
    INTERCITY(20, "城际运输"),//"城际"
    SENDBYDRIVER(30, "人送代驾"),;//"人送"

    private final int value;
    private final String text;

    AccBillTypeEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static AccBillTypeEnum getByValue(int value) {
        for (AccBillTypeEnum temp : AccBillTypeEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
